package com.jiang.utils;

import com.jiang.exception.ParamException;

/**
 * @author Jiang Junsheng
 * @create 2019/1/20
 * @since 1.0.0
 */
public class ValidateUtils {

    public static void check(ValidateData validateData){
        if(!validateData.isStatus()){
            throw new ParamException(validateData.getMessage());
        }
    }
}
